package com.example.fw;

import java.util.List;

import org.hibernate.Session;

public class HibernateHelper {

	public HibernateHelper(AppManager app) {
	}

	public List<GroupData> listGroups() {
		Session session = HibernateUtil.getSessionFactory().getCurrentSession();
		session.beginTransaction();
		return (List<GroupData>) session.createQuery("from GroupData").list();
	}
}
